<?php
//验证码类
class Utils {


    static function moveUploadFile($file){
        try{

            rename("temp/". $file,"uploads/". $file);
        }catch (Exception $e){}
    }

    static  function sendEmail($subject ,$to,$message){
        $to = "test@163.com";//收件人
        $subject = "Test";//邮件主题
        $message = "This is a test mail!";//邮件正文
        ini_set('SMTP','smtp.163.com');//发件SMTP服务器
        ini_set('smtp_port',25);//发件SMTP服务器端口
        ini_set('sendmail_from',"admin@163.com");//发件人邮箱
        mail($to,$subject,$message);

    }


}